package com.itheima.HomeWork;


import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class Demo01 {
    public static void main(String[] args) throws IOException {
        Properties pro = new Properties();
        pro.setProperty("brand", "Iphone11Pro Max");
        pro.setProperty("capacity", "256G");
        pro.setProperty("price", "10899");
        pro.store(new FileWriter("aaa.properties"),"a1");

        pro.load(new FileReader("aaa.properties"));

        System.out.println(pro);
    }
}
